/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 16:21:02
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 16:34:22
 */
public class Circle extends Shape{
    private double radius;
    public Circle(String color,double radius){
        super(color);
        this.radius = radius;
    }
    @Override
    public double area(){
        return Math.PI * radius * radius;
    }
}
